#ifndef __COLLECT_CONVERT_H
#define __COLLECT_CONVERT_H

#include "config.h"

#define ROUND_0_255(v)	((v) < 0 ? 0 : ((v) > 255 ? 255 : (v)))

int yuv_to_jpeg(int Width, int Height, int size, unsigned char* yuv_buffer, unsigned char* jpg_buffer, int quality);

#endif
